package com.hhf.feiojjudgeservice.controller.inner;

import com.hhf.feiojapiservice.client.JudgeFeignClient;
import com.hhf.feiojjudgeservice.service.JudgeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author hhf
 * @Date 2024/11/3
 * @Description
 */
@RestController
@RequestMapping("/inner")
public class JudgeInnerController implements JudgeFeignClient {

    @Resource
    private JudgeService judgeService;

    @Override
    @GetMapping("/judge")
    public void doJudge(long questionSubmitId) {
        judgeService.doJudge(questionSubmitId);
    }
}
